from vector import *
from rendering import *
import mah_timeModule as TM
class generator:
    def __init__(self,count,iList,life,surface):
        self.timer = TM.mah_timer()
        self.particleList = []
class particle:
    def __init__(self,iList,life,sprite,surface):
        self.frame = 0
        self.life = life
        self.sprite = sprite(iList,(10,10),surface)
    def draw(self,pos):
        if self.timer.limitFps(self.sprite.getLenght()):
            self.frame = self.frame + 1
            self.sprite.setFrame(self.frame)
            self.sprite.draw(pos)
